package com.zmn.oms.zmn.business.interfaces.track;

import com.zmn.oms.model.dto.track.AddOrderTrackDTO;
import com.zmn.oms.model.dto.track.CompleteOrderTrackDTO;
import com.zmn.oms.model.dto.track.OrderTrackDTO;
import com.zmn.oms.model.dto.track.WorkTrackDTO;
import com.zmn.oms.model.entity.track.OrderTrackQuery;

/**
 * 类描述：跟单
 *
 * @author heciqi
 * @date 2018/11/27 14:20
 */
public interface ZsOrderTrackBService {

	/**
	 * 数量查询
	 * @param query
	 * @return
	 */
	Integer countByQuery(OrderTrackQuery query);
	/**
	 * 新增工程师跟单
	 * @param addOrderTrackDTO
	 * @return
	 */
	void insertMasterTrack(AddOrderTrackDTO addOrderTrackDTO);

	/**
	 * 新增后台用户跟单
	 * @param addOrderTrackDTO
	 * @return
	 */
	void insertUserTrack(AddOrderTrackDTO addOrderTrackDTO);

	/**
	 * 跟单系统更改订单系统状态
	 *
	 * @param workTrackDTO
	 * @return void
	 * @author wangxiaokun
	 */
	void modifyOrderWorkStatus(WorkTrackDTO workTrackDTO);

	/**
	 * 修改跟单结果
	 * @param completeOrderTrackDTO
	 * @return
	 */
	void updateResultTrack(CompleteOrderTrackDTO completeOrderTrackDTO);
}
